package com.rybbaby.tss.platform.sysFileDistributedHistory.service.imp;

import com.rybbaby.tss.core.web.service.imp.BaseServiceImp;
import com.rybbaby.tss.platform.sysFileDistributedHistory.entity.SysFileDistributedHistory;
import com.rybbaby.tss.platform.sysFileDistributedHistory.service.ISysFileDistributedHistoryService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @description 文件分发记录数据库操作服务实现
 * 
 * @author 谢进伟
 * 
 * @createDate 2016-11-23 下午11:09:21
 */
@Service
@Transactional
public class SysFileDistributedHistoryServiceImp extends BaseServiceImp<SysFileDistributedHistory> implements ISysFileDistributedHistoryService {

	@Override
	public List<Map<String , Object>> fileServerIdDatasource(){
		String sql1 = "SELECT id,ip FROM sys_file_server";
		List<Map<String , Object>> fileServerId_datasources = this.findForJdbc(sql1 , null);
		return fileServerId_datasources;
	}
	
	@Override
	public List<Map<String , Object>> fileIdDatasource(){
		String sql2 = "SELECT id,filename FROM sys_files";
		List<Map<String , Object>> fileId_datasources = this.findForJdbc(sql2 , null);
		return fileId_datasources;
	}
	
	
}
